package com.hades.spring.cloud.config.resource;

import org.springframework.core.io.ContextResource;
import org.springframework.core.io.FileSystemResource;

import java.io.File;

/**
 * @ClassName: FileSystemContextResource
 * @Description:
 * @Author: Hades
 * @created: 2021/06/03 00:33
 * @Version:1.0
 */
public class FileSystemContextResource extends FileSystemResource implements ContextResource {


    public FileSystemContextResource(File file) {
        super(file);
    }

    @Override
    public String getPathWithinContext() {
        return getPath();
    }
}
